package com.cn.crmsystem.mapper.approveMapper;

import com.cn.crmsystem.pojo.Approve;
import com.cn.crmsystem.pojo.Reimbursement;
import com.cn.crmsystem.pojo.User;
import java.util.List;
public interface ReimbursementMapper {
	//领导id查询
	Integer selectleaderId(Integer userid);
	//领导名查询
	User selectleader(Integer leaderid);
	//报销表插入
	int InsertReimbursement (Reimbursement reimbursement);
	//关联插入审批表
	int InsertApprove (Integer leader,Integer reimbursement_id,Integer type);
	//通过拒绝 update 报销表
	int UpdateReimbursement(Integer appid,Integer state);
	//我发出查询报销列表
	List<Approve> selectMYReimbursement (Integer userid);
	//待我审核列表
	List<Approve> selectApproveReimbursement (Integer userid);
	//删除报销表
	int DeleteReimbursement (Integer reimbursement_id);
	//报销id查询
	int Reimbursementid(Integer appid);
	//删除审核表
	int DeleteApprove (Integer appid);
	//我的条件查询
	List<Approve> selectMyCondition(Integer userid, String state);
	//我审核条件查询
	List<Approve> selectApproveCondition(Integer userid, String state);
}
